OBJS = $(patsubst src/%.c, build/%.o, $(wildcard src/*.c))
TARGET = main

$(TARGET): $(OBJS)
	cc $^ -o $@

build/%.o: src/%.c
	@mkdir -p build
	cc -c $^ -o $@ -I include

clean:
	rm -rf build/ $(TARGET)